home *** CD-ROM | disk | FTP | other *** search
/ Aminet 32 / Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso / Aminet / dev / amos / AMOSList-0499.lzh / AMOSLIST / 000046_nobody_Sun Apr 4 19:17:32 1999.msg < prev    next >
Internet Message Format  |  1999-05-01  |  3KB

  1. Received: from onelist.com (pop.onelist.com [209.207.164.159])
  2.     by osf1.gmu.edu (8.8.8/8.8.8) with SMTP id TAA20980
  3.     for <mcox4@osf1.gmu.edu>; Sun, 4 Apr 1999 19:17:32 -0400 (EDT)
  4. Received: (qmail 3455 invoked by alias); 4 Apr 1999 23:18:05 -0000
  5. Received: (qmail 3414 invoked from network); 4 Apr 1999 23:18:05 -0000
  6. Received: from unknown (HELO mail.enterprise.net) (194.72.192.18) by pop.onelist.com with SMTP; 4 Apr 1999 23:18:05 -0000
  7. Received: from enterprise.net (andrewcrowe@max04-032.enterprise.net [194.72.196.152]) by mail.enterprise.net (8.8.5/8.8.5) with SMTP id AAA22378 for <amos-list@onelist.com>; Mon, 5 Apr 1999 00:17:27 +0100 (GMT/BST)
  8. From: Andrew Crowe <andrewcrowe@enterprise.net>
  9. To: amos-list@onelist.com
  10. Date: Mon, 05 Apr 1999 00:14:56 +0000
  11. Message-ID: <yam7764.2821.1201523392@mail.enterprise.net>
  12. In-Reply-To: <yam7763.2689.1198492872@mail.enterprise.net>
  13. X-Mailer: YAM 2.0Preview7 [020] - Amiga Mailer by Marcel Beck - http://www.yam.ch
  14. Mailing-List: list amos-list@onelist.com; contact amos-list-owner@onelist.com
  15. Delivered-To: mailing list amos-list@onelist.com
  16. Precedence: bulk
  17. List-Unsubscribe: <mailto:amos-list-unsubscribe@ONElist.com>
  18. Reply-to: amos-list@onelist.com
  19. Mime-Version: 1.0
  20. Content-Type: text/plain
  21. Subject: [amos-list] Re: Error: Power (^)
  22. Status: O
  23. X-Status: 
  24.  
  25. From: Andrew Crowe <andrewcrowe@enterprise.net>
  26.  
  27. Hi Everybody,
  28.  
  29. >> A=2+10^1 : Print A 
  30. >> A should be 12, right? Doh. AMOS thinks it's 11! 
  31. >> When I use: 
  32. >> Print 2+10^1
  33. >> Nothing is wrong... 12 is correct... Strange!
  34.  
  35.    Ooo, wait! it gets better ;)
  36.  
  37. try this:
  38.  
  39. a#=2+10&1
  40.  
  41. a=a#
  42.  
  43. Print a,a#
  44.  
  45.  
  46.    this prints  11  12 !!!?!?
  47.  
  48.  
  49.    if that aint weird, I don't know what is.
  50.  
  51. My only guess is it works 10^1 out to be 9.9r, so when its converted to an
  52. integer it knocks it down to 9.
  53.  
  54.  
  55.    Well I've found a fix anyway, just use FP numbers insted of integers.
  56.  
  57. See ya.
  58. -- 
  59.        Manta Soft  -  Amiga programing & web page designing
  60.    Http://members.tripod.com/~mantasoft/      ICQ: 21829166
  61.               Updated  27/3/99 -- New Bomberman clone started
  62.   - ------------------- Quote of the day: -------------------- -
  63. Anyone can make mistakes, but only an idiot persists in his error.
  64. -- Cicero
  65.  
  66.  
  67. ------------------------------------------------------------------------
  68. To unsubscribe from this mailing list, or to change your subscription
  69. to digest, go to the ONElist web site, at http://www.onelist.com and
  70. select the Member Center link from the menu bar on the left.
  71. ------------------------------------------------------------------------
  72. Official AMOS WWW: http://members.xoom.com/AmosFactory/front.html